package com.dongwu.manager.service;

import com.dongwu.common.service.IBaseService;
import com.dongwu.manager.dto.ProductData;
import com.dongwu.manager.entity.DeviceProductRecord;
import com.dongwu.manager.entity.Product;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Sort;

public interface ProductService extends IBaseService<Product, String> {
//	List<ProductData> findByDeviceId(String deviceid);
	
	List<Product> findBySort(Sort sort);
	
	void syncProduct(List<ProductData> datas);

	void importProduct(List<ProductData> datas);

	void delete(List<DeviceProductRecord> records, String id);
	
	void delete(List<DeviceProductRecord> records, String[] ids);
	
	Long getCount(Map<String, Object> searchParams, String userId);

	int searchYKProduct(String yunkeNum,int pageNo,int pageSize,List<ProductData> products) throws Exception;

	void syncYKProduct(String yunkeNum,int pageNo,int pageSize) throws Exception;
	
	List<Product> getProductForDevId(String deviceId,String classifyId);
}
